acpi: Make sure valid CPU is passed to do_pm_op()
authorBoris Ostrovsky <boris.ostrovsky@amd.com>
Wed, 15 Aug 2012 07:43:25 +0000 (09:43 +0200)
committerBoris Ostrovsky <boris.ostrovsky@amd.com>
Wed, 15 Aug 2012 07:43:25 +0000 (09:43 +0200)
commit81ccd147226c43dcd81ff4b53487db7e83058afd
tree6b495ace708c6d799371c73dc7d0315ccf60bf6c
parentdd40177c1bc86650a2be9786289ebe0397b1c0a3
acpi: Make sure valid CPU is passed to do_pm_op()

Passing invalid CPU value to do_pm_op() will cause assertion
in cpu_online().

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@amd.com>
Such checks would, at a first glance, then also be missing at the top
of various helper functions, but these check really were already
redundant with the check in do_pm_op(). Remove the redundant checks
for clarity and brevity.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Committed-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/acpi/pmstat.c